<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>按钮组</title>
    <link href="bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        <!--按钮工具栏-->
        <div class="btn-toolbar" role="toolbar">
            <div class="btn-group btn-group-lg" role="group">
                <button type="button" class="btn btn-default">left</button>
                <button type="button" class="btn btn-default">center</button>
                <button type="button" class="btn btn-default">right</button>
            </div>
            <div class="btn-group btn-group-sm" role="group">
                <button type="button" class="btn btn-default">left</button>
                <button type="button" class="btn btn-default">center</button>
                <button type="button" class="btn btn-default">right</button>
            </div>
            <div class="btn-group btn-group-xs" role="group">
                <button type="button" class="btn btn-default">left</button>
                <button type="button" class="btn btn-default">center</button>
                <button type="button" class="btn btn-default">right</button>
            </div>
            <div class="btn-group" role="group">
                <button type="button" class="btn btn-default">left</button>
                <button type="button" class="btn btn-default">center</button>
                <button type="button" class="btn btn-default">right</button>
            </div>
            <!--垂直按钮组-->
            <div class="btn-group btn-group-vertical" role="group">
                <button type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-arrow-left" aria-expanded="true"></span>
                </button><button type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-arrow-right" aria-expanded="true"></span>
                </button><button type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-arrow-up" aria-expanded="true"></span>
                </button></button><button type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-arrow-down" aria-expanded="true"></span>
                </button>
                <div class="btn-group" role="group">
                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
                        下拉菜单
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <br/>
        <div class="btn-group btn-group-justified" role="group">
            <div class="btn-group" role="group">
                <button class="btn btn-default" type="button">left</button>
            </div>
            <div class="btn-group" role="group">
                <button class="btn btn-default" type="button">middle</button>
            </div>
            <div class="btn-group" role="group">
                <button class="btn btn-default" type="button">right</button>
            </div>
        </div>

    </div>
    <script src="jquery-1.11.1.js"></script>
    <script src="bootstrap.min.js"></script>
</body>
</html>